location.reload sweetalert

148

location.reload sweetalert -

swal({title: "Good job", text: "You clicked the button!", type: "success"},
   function(){ 
       location.reload();
   }
);

location.reload sweetalert -

swal({title: "Good job", text: "You clicked the button!", type: 
"success"}).then(function(){ 
   location.reload();
   }
);

Comments

Submit
0 Comments